﻿using System.Runtime.Serialization;

namespace FuiouPay.Models.Request {
    public class HisTradeQueryRequestInfo : FuiouRequestInfo {

        /// <summary>
        /// 必填，商户订单号, 商户系统内部的订单号（5到30个字符、 只能包含字母数字,区分大小写)
        /// </summary>
        [DataMember(Name = "mchnt_order_no")]
        public string MchntOrderNo { get; set; }

        /// <summary>
        /// 必填，订单类型：
        /// ALIPAY(统一下单、条码支付、服务窗支付)
        /// WECHAT(统一下单、条码支付、公众号支付)
        /// UNIONPAY(银联)
        /// WXAPP(微信app)
        /// ALIAPP(支付宝app)
        /// WXH5(微信h5)
        /// ALIH5(支付宝h5)
        /// </summary>
        [DataMember(Name = "order_type")]
        public string OrderType { get; set; }

        /// <summary>
        /// 交易日期（yyyyMMdd），非必填，默认当天。
        /// 查询往日交易时，必填
        /// </summary>
        [DataMember(Name = "trade_dt")]
        public string TradeDt { get; set; }

        /// <summary>
        /// 条码流水(线下支付，条码流水号)
        /// </summary>
        [DataMember(Name = "channel_order_id")]
        public string ChannelOrderId { get; set; }

        /// <summary>
        /// 渠道订单号(微信、支付宝流水号)
        /// </summary>
        [DataMember(Name = "transaction_id")]
        public string TransactionId { get; set; }
    }
}
